package com.wonders.hisdoctor.station.project.base.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wonders.his.common.utils.validator.group.PrimaryGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>协定处方主表</p>
 * <p>db_table: OUTP_CIPHER_PRESC</p>
 * @author tong_aj
 * @date 2021/02/20
 */
@ApiModel("协定处方主表")
@Accessors(chain = true)
@Data
@ToString
@TableName("OUTP_CIPHER_PRESC")
public class OutpCipherPresc implements Serializable {

    private static final long serialVersionUID = 4676753863549771796L;

    /** `主键` db_field: CIPHER_ID; desc: 协定处方ID */
    @ApiModelProperty("协定处方ID")
    @TableId
    @NotNull(message = "协定处方ID不能为空", groups = PrimaryGroup.class)
    @TableField("CIPHER_ID")
    private Long cipherId;

    /** db_field: CIPHER_NAME; desc: 协定处方名称 */
    @ApiModelProperty("协定处方名称")
    @TableField("CIPHER_NAME")
    private String cipherName;

    /** db_field: CIPHER_TYPE; desc: 协定处方类型：1 全院级  2 科室级 3 个人级 */
    @ApiModelProperty("协定处方类型：1 全院级  2 科室级 3 个人级")
    @TableField("CIPHER_TYPE")
    private String cipherType;

    /** db_field: DEPT_CODE; desc: 科室代码 */
    @ApiModelProperty("科室代码")
    @TableField("DEPT_CODE")
    private String deptCode;

    /** db_field: OWNER; desc: 所属人 */
    @ApiModelProperty("所属人")
    @TableField("OWNER")
    private String owner;

    /** db_field: CREATE_TIME; desc: 创建时间 */
    @ApiModelProperty("创建时间")
    @TableField("CREATE_TIME")
    private Date createTime;

    /** db_field: HOSPITAL_CODE; desc: 医院代码 */
    @ApiModelProperty("医院代码")
    @TableField("HOSPITAL_CODE")
    private String hospitalCode;

    /** db_field: PRESC_TYPE; desc: 处方类型 */
    @ApiModelProperty("处方类型")
    @TableField("PRESC_TYPE")
    private String prescType;

}